"""全局样式定义"""

# 全局高对比度字体颜色
FONT_COLOR = "#e0e0e0"
FONT_COLOR_BOLD = "#ffffff"

# 主窗口和分组背景
MAIN_WINDOW_STYLE = """
QMainWindow, QWidget {
    background-color: #f5f6fa;
    color: #23263a;
}
"""

# 分组框样式
GROUP_BOX_STYLE = """
QGroupBox {
    background-color: #ffffff;
    color: #23263a;
    border: 1px solid #b0b6c8;
    border-radius: 8px;
    margin-top: 1ex;
    font-weight: bold;
}
QGroupBox::title {
    subcontrol-origin: margin;
    subcontrol-position: top left;
    padding: 0 8px;
    color: #23263a;
}
"""

# 按钮样式
BUTTON_STYLE = """
QPushButton {
    background-color: #23263a;
    color: #f5f6fa;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}
QPushButton:hover {
    background-color: #4f8cff;
}
QPushButton:pressed {
    background-color: #2d3147;
}
QPushButton:disabled {
    background-color: #b0b6c8;
    color: #e5e9f7;
}
"""

# 输入框样式
INPUT_STYLE = """
QLineEdit, QTextEdit, QComboBox {
    background-color: #23263a;
    color: #f5f6fa;
    border: 1px solid #b0b6c8;
    border-radius: 4px;
    padding: 4px;
}
QLineEdit:focus, QTextEdit:focus, QComboBox:focus {
    border: 1px solid #4f8cff;
}
QComboBox QAbstractItemView {
    background: #f5f6fa;
    color: #23263a;
    selection-background-color: #4f8cff;
    selection-color: #f5f6fa;
}
QComboBox:disabled, QLineEdit:disabled, QTextEdit:disabled {
    color: #b0b6c8;
    background: #e5e9f7;
}
"""

# 标签样式
LABEL_STYLE = """
QLabel {
    color: #23263a;
}
"""

# 进度条样式
PROGRESS_BAR_STYLE = """
QProgressBar {
    background-color: #e5e9f7;
    border: none;
    border-radius: 2px;
    text-align: center;
    color: #23263a;
}
QProgressBar::chunk {
    background-color: #4f8cff;
    border-radius: 2px;
}
"""

# 滚动条样式
SCROLL_BAR_STYLE = '''
QScrollBar:vertical {
    background: #232634;
    width: 12px;
    margin: 0px 0px 0px 0px;
    border-radius: 6px;
}
QScrollBar::handle:vertical {
    background: #45475a;
    min-height: 20px;
    border-radius: 6px;
}
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
    background: none;
}
QScrollBar:horizontal {
    background: #232634;
    height: 12px;
    margin: 0px 0px 0px 0px;
    border-radius: 6px;
}
QScrollBar::handle:horizontal {
    background: #45475a;
    min-width: 20px;
    border-radius: 6px;
}
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
    background: none;
}
'''

# 分组标题样式
SECTION_TITLE_STYLE = '''
.section-title {
    color: #89b4fa;
    font-size: 15px;
    font-weight: bold;
}
'''

# 视频列表样式
LIST_WIDGET_STYLE = '''
QListWidget {
    background-color: #181825;
    color: #e0e0e0;
    border: 1px solid #45475a;
    font-size: 15px;
}
QListWidget::item {
    color: #e0e0e0;
    background: transparent;
    padding: 6px 4px;
}
QListWidget::item:selected {
    background: #313244;
    color: #89b4fa;
}
QListWidget::item:hover {
    background: #232634;
    color: #b4befe;
}
''' 